package com.university.report.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.university.report.model.entity.UserInfo;
import com.university.report.model.vo.UserInfoVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Jinondo
 * @since 2021-06-09
 */
@Repository
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    void setReportStatusTo0();

    /**
     * RS0 : report status = 0
     * @return
     */
    List<UserInfoVO> selectUserVOByRS0();

    List<Integer> selectUserIdByDep(String department);

    UserInfoVO selectByUserId(@Param("userId") Integer userId);
}
